  export const errorCodeType = function(code:any):any {
    let errMessage = '未知错误'
    switch (code) {
      case 0: 
        errMessage = '失败'
        break
      case 1: 
        errMessage = '成功'
        break
      case 10010: 
        errMessage = '未传入凭证信息'
        break
      case 403: 
        errMessage = '没有权限'
        break
    }
    return errMessage
  }